﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MINERP.BLL.PrintManage;

namespace MINERP.Xray
{
    public partial class FrmTransferPrinter : Form
    {
        public DataSet _dsPrint = new DataSet();
  

        private BLLLogin _bll = new BLLLogin();

        public FrmTransferPrinter()
        {
            _bll.GetPrint(out _dsPrint);
            InitializeComponent();
        }


        private void FrmTransferPrinter_Load(object sender, EventArgs e)
        {
            this.lkpPrinters.Properties.DataSource = _dsPrint.Tables[0];
        }


        private void btnOK_Click(object sender, EventArgs e)
        {
            FrmMain.destPrinterId  =Convert.ToInt32( lkpPrinters.EditValue);
            this.Close();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            FrmMain.destPrinterId = 0;
            this.Close();
        }
    }
}
